-- GENERATED SPELL FOR [Netherstorm Agent] --


function spell0_19541(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19541', 5345, 1)
end

function spell1_19541(pUnit, Event) --@Shoot Tech Gun,n/a--
pUnit:FullCastSpellOnTarget(36246,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19541', 521, 1)
end

function Sorts_19541(pUnit, Event)
local choix_sorts_19541 = math.random(0, 1)
if choix_sorts_19541 == 0 then
pUnit:RegisterEvent('spell0_19541', 1, 1)
end
if choix_sorts_19541 == 1 then
pUnit:RegisterEvent('spell1_19541', 1, 1)
end
end

function mob19541_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19541', math.random(1500, 3000), 1)
end

function mob19541_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19541_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19541_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19541, 1, 'mob19541_Action')
RegisterUnitEvent(19541, 2, 'mob19541_Leave')
RegisterUnitEvent(19541, 3, 'mob19541_Kill')
RegisterUnitEvent(19541, 4, 'mob19541_Die')
